package com.tutu.sys.dao;

import com.github.pagehelper.Page;
import com.tutu.sys.entity.SysMsgInstation;
import com.tutu.sys.entity.SysMsgInstationExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SysMsgInstationMapper {
    int countByExample(SysMsgInstationExample example);

    int deleteByExample(SysMsgInstationExample example);

    int deleteByPrimaryKey(String msgId);

    int insert(SysMsgInstation record);

    int insertSelective(SysMsgInstation record);

    List<SysMsgInstation> selectByExample(SysMsgInstationExample example);

    SysMsgInstation selectByPrimaryKey(String msgId);

    int updateByExampleSelective(@Param("record") SysMsgInstation record, @Param("example") SysMsgInstationExample example);

    int updateByExample(@Param("record") SysMsgInstation record, @Param("example") SysMsgInstationExample example);

    int updateByPrimaryKeySelective(SysMsgInstation record);

    int updateByPrimaryKey(SysMsgInstation record);
    /**
     * 获取我发送的消息数
     * @param sysMsgInstation
     * @return
     */
    long getMySendMsgCount(SysMsgInstation sysMsgInstation);
    /**
     * 获取我发送的消息
     * @param sysMsgInstation
     * @return
     */
    List<SysMsgInstation> getMySendMsgList(@Param("sysMsgInstation") SysMsgInstation sysMsgInstation,@Param("page") Page<SysMsgInstation> page);
}